Error with rest value