bug fixed.

pages can be a single number now.