fixed bug in checker