fixed error in production environment