fixed a comparison warning