Fix for broken isModal