Fix bug for invalid access variable.