Fix type mismatch causing VS compile warn