fix issue #164 and add fiddle