fixed bug in dispose()
Merge pull request #20 from just4phil/myChanges2

fixed bug in dispose()