fixed return value of 'head'