Fix crash due to non-exist uid