fix signed<->unsigned warnings