Fixed breaking attributes in smartymixed mode

Closes issue #2832