Fix handler not correctly handling case insensitivity