Bug #2290: Now refresh after successful attach/detach won't fail