fix head bugs