fixed missing APP_ENV variable