Fixed variable name in writing lev values of 1