maybe check for proper dimensions of the vectors?