fix InPlace validation to be more robust