fix 'dilate' option bug
(#22)