Fix for bootstrap modal flickering