Fix bottom pagination bug