fix two head bug