fixed arg parsing bug