Fixed crash when files contained a declaration on the first line