Fixed a corner case