fix issue 658 - struct pointers in with()