fix minor typeerrors