Bug fix to getData