Fix case bug