fixes dict reference.