Bug fix for calling data object method
amended previous commit