fix reg error and default word error