fix virutal attributes throwing error