Fix the beforeSave event example code.