Fixed double click pagination bug