Fix: Prevent category being reset for duplicate transaction