Fixed a bug where `previous_link` was set to the value of `previous`