added fix to in place
another minor fix to in-place