fix setting attachment item parent