the actual number of elements was not correctly transfered