fix termination type for linear reg