small type fixes