fixed bug in the check update mechanism