Fixed bug in argument handling in the sample app