fix read using dict