Fix bug in basic_access error path.