fix a bug of the amount of showed entries