Fixed Bug when deleting not jet inserted entities.
Fixed bug - typo