fixed logic on online/offline listing