fixing dict comparison