fixed AttributeError
refs #607