Bad class inheritance as reported by kirkmadera

Fixes #1