fixing more signed int problems