bug fixing multiple insert fails