fixed Categories bug