fixed bug parsing cmd line