add sanitize. fix #215.