Fixed significant bug.