Fixed important bug.