Bug fix: Removed incorrect enum check