Fix variable assignation for non-integer types