bug fix in turn page