Fixed a minor CanShowSheet bug.