Fix global $currentcat
Removed undefined variable $path from map