Fix bug in getHead, bump to 0.6.1