fixed variations bug