correcting bad directory call