fixed weird case error