Fix for depth of dragged objects being reset to 0.