use array#first instead of array[0]. fixes #93