Corrected bug in outside rolling mean