floodit: recursion depth fix