fixed flake errors