fixed a bug with case sensitivity