fix : no room when number of pages sup than 9