Fixed a bug with attribute get