This will hopefully fix that models / documents are saved multiple times as different models / documents even if they shouldn't
Added todo