fix inplace editing issues