try to init your arrays complete...

var destination[3] = {0,0,0};
var oldDest[3] = {0,0,0};