fix modelController update 500 error