Fixed error when no file passed.