fix for issue with clearing on save related items that are empty