Fixed a bug with invalid case