bug fix for level arguments