fix a bug that occur on no columns