Made changes for deploying
Fixed bug in production mode