Fix bug: rework generated content into compiled file to avoir error like 'class already defined'