Fixed a crash with virtual sites in double precision mode