Fixed bug erasing data when modifying existent record