fixed crash when removing a dictionnary