fix converting 'dict' to 'str' implicitly