fixed before_destroy syntax