head bug fix