Fix minor bug in isCurrentDisplay