Fixed signed/unsigned issue