Fix signed flag issues