fix  TypeError: sequence item 0: expected string, dict found