Fixed the bug Vicky found.