- fix bug if datasource has no caption attribute (take name instead)