fix reg cov bug