fixes issues with parsing span data.