fixed issue with empty last column