Fixes to unit detail save