fix guard in middleware.project