Check MY_UID() directly instead of accessing am_root.