accessor: use floating object mechanism

It fixes a crash bug that is introduced at
5976731352ed992ed3b6c4c0434e9ffccc03477c.

Reported by cosmo0920. Thanks!!!