Fixed dispose bug