making sure the right lenght chebfun is constructed.