small bugfix in event src code generator