to fix fading of modal