fixing bug on category dropdown