Fix panic with comments in file