fix crash if comment on last script line