how to fix inplace