multilevel bug fix