fixes difference type, closes #67