Fixed non-inplace modification