Fixed error in isInternal