moves productions settings back on  debug mode else 500 error