Fixed the "unable to call checkcmd" issue