Fixing error in catalog.php