Province scrambles to fix legal 'gap' affecting vulnerable c