Fixed issue when no file is specified