fix #167 (thanks cleanrock!)