Fixing role migration in production mode.