fix len_x spark