Update ContentGenerator.pm

Fixed minor bug