more bugfixing for created_by generator