fixing bug with the full-page viewer