updated bugs in matlab prepend.