fix for unsolvable 5 bug