Fixed bug with preserving IDs of bulk insert