fixed bad category links function call