Fixed bug when running with no flags

Change-Id: Ie50d7d2ad65eb5599cd303f8d90926d7e9b382d7