fixed uint->int comparison warnings