bug in checkscript