fixed case insensitivity bug