fixed errors in WorldFormatter and cli gen