Fix drawing of inactive selected elements.

Fixes issue #90.