Fix check directory