Fix integer type compare error