fixed missing input subdirectory bug