Fixes issue with saving a new type