Fixed bugs concerning production build.