Fixed issue on setting level in calc.pm