bug removed for empty columns