Fix inplace option