minor type fixes.