FIXES a bug in the weight selection for double weights