Fix get_type not returning a int