Fixed an error causing bug.