fix for rowLapply