shm anon cast fix