fixed phantom rows at bottom of file