Fix in toDict