fixed a heinous bug