Entity save's hooks fix

Signed-off-by: Alexander Shepetko <a@shepetko.com>