Fixed a corner case.