fixed to enable pagination feature which use search POST parameter (fixes #1680)

Thanks 'Youichi Kimura'