Fix error: forget to leave the dir