fixing modal effect