fix unsigned warning