Fixes all edit mode errors.