fixed "debug" settings being applied in production env.