fix previous page navigation. Tested on Gallery Wind theme