inplace insertion fixes