Fix the AttributeError for ST3

Fixes #512.