fixed issue where filename is not read from command line demo