fix undeclared identifier myHead