fixed error and production build