bugfix signed-unsigned comparison