Fixes #9 (pagination bug).