Fix for virtual attributes