Fixed comparison of signed and unsigned.