fixed ajax on category creation