potential fix to modal problem