fixed beforeAction