fixed flaked8 errors