Fixed stub-generation script: modified Place mode