Fixed alleged problems with dispose().
Merge remote-tracking branch 'origin/master'