Fixes bug that prevent production environment from working.