bugfix: controllers without before hook led to an error