fix terrible missing logic test