Corrected a bug when moving categories around