fixed missing const argument, when passed magic_file argument fails.