fixed catalog linking error when using mod.php