Fixed small unsigned bug