fixed bug which caused to work singlePageMode not properly
fixed bug which caused to work singlePageMode not properly