Fixed error

Fixed error when specifying file with -f or --file flag