type err fix