fix missing this_level variable