fix randomly failing modal related specs