listing.php: bugfix

listing.php: bugfix: listing wasn't working correctly