Corrected stupid errors made late at night