Fix tree search and MINIX erros