attempting to fix expected string, dict found