fix for bug - ensure correct category selected