fixed bug in wid.py. There was an exception when the check sum was less than five digits