fixed error in the case of empty list of virtual attributes