i think i fixed the type bug