fix for timestamp when entity is created.