fix variance initialization