fixed lua error when leaving hop count field empty