Bug found when looking for a directory