fix #7 NullPointerException on BendingLevel, makes some class a bit more readable