Fixing error in listings page