fix bugs with dispoce