fixing dict keys call