Fixing std_dev