handle invalid first line