Fixed some issues where I was accessing an interface pointer instead of a pointer to a struct that conforms the interface