fixed bug in production build