fixed head bug