fix terrible bug like a boss