fix silly error in adding variance to ensure positive PS
(#529)