Fix previous_url and next_url