tracked down the error. Copy constructors when using Eigen become very special