Fix small dispose bug