Fix signed/unsigned issues.