heuristic fix, thanks goes to presto53 for the hint