Fixed bug with case insensitivity