fix bug when changin product category