fix unsigned bug