fix skip pattern bug for last question on a page