fixing bug with uints