Fix sample param (convert to int.)