Fix issue 2322
Merge pull request #726 from Zahnstocher/max-level-patch

Fix issue 2322