proper refresh of error lines