fix bug depth