A CFD study of the bubble deformation during detachment