fix tc_id issue on resize where an exception is raised when trying to save over an existing id