fixed case-related bug