fixing error on listing pages