fix bug in indented wrapped results insertion