fixed dispose function
Merge pull request #17 from linorabolini/dispose_fix

fixed dispose function