fix dict in wrong context