Fix dispose bug