removed bug in error bar formula