Fixed nil class bug for error lines