fix issue #169 (segfaults with show)