Fix reset issue
Merge pull request #52 from ffmegaman/fix-reset

Fix reset issue