Should fix problems with virtual attributes