Fixed signed/unsigned comparison warnings