klks bugfix thanks to esmid, added some bounds checking
a14ef05 Mar 26, 2017
bugfix thanks to esmid, added some bounds checking
a14ef05