Fixed a possible bug.