fixes problem with rolify dynamic shortcuts in production.