ActivityManagerService: fix wrong register from firstpatch