fixed initialize copying rows to buffer. NOW this should work.