Added bug fix from adegenet for polyploids