try fix reg & log