Fixing incompatibilities with afterSave() and beforeSave() callbacks.