fixes submodel add queries