-Fixed deleteFlag issue