fix wrong style with pagination