Fix modal switching animation