Fix bug in mccheck.lua