fix sign comparison warning