fix head macro error