Fixed errors occur with different lengths.