fix case bug