fix gen folder not set as source folder