fix sample variable type