Added fix to depth for moving items.