Fixing type of variables