Fixed the work of engine in the subdirectory