Got rid of head error