I think this [line](https://github.com/Samyak2/skip-list/blob/6a8a9f7fe906e3b8a476255728be286f67088d86/skiplist/skiplist_map.hpp#L493) should be followed by : ```cpp if(history.back()->next != nullptr) history.back()->next->previous = node; ```