fixed stacking bug affecting modal