fix search pagination isues; closes #207