Fixed a bug that caused cards to be duplicated after board edit