check correction of directory