minor type fixes