Corrected type of variable