fix #154 to handle no access rights