Fix lame reg engine workaround