fix inplace editing