Fixed a bug with case.