minor bug fix on corecmd