prepend elements fix

When prepending elements with an array of data it appends instead of
prepend