Fix: Cannot take the address of generic type error