bug fix with flame