subdir bug fixed