Fixed std dev problem