fixing lines that do not have metrics or file declaration