Fixed wrong command line arguments processing