fix sign comparison warnings