variant bug fix