Fixed an uncleared stack bug.