Fix attribute errors, refs #313.