Fix #746 ignorecase problem