Fix post save hook on embedded documents