Fix variable type