Code Correction

corrected entity properties (created, changed) in save function