Fixed issue with object attribute