fixed bug in get_access_type