Update zimcheck.cpp

Bug fix