fixed unsigined int issue