Fix bug when using bind() with adapted structs