fixed error in production env