bug fix. Crush. Double free. fix #8