variable type fix