fix for bug when chosen variation is == 0