Fixed overflow when pagination is present.