Solved modal problem in minification.