Fixed bug in variance filter.