Fixed a possible cause of the bug.