Fixed line numbers and cancel button bug not preforming a full reset