UPDATE: fix reg crash