fix getType