Fixed issue when editing a part