Fix #52 paginator throw exception under server mode