fixed out-of-bounds crash during error eval when running from command line (thanks to github user fpmchu)