Fixed problem with case insensitiv switch.