Fixed sub pages bug