fix bug on case sensitive servers