Fixed reselection of stock; use replace instead of add fragment operation.