fixes some case issues for issue #1322