Fix dictionary add method for ie