Fix bug introduced into alpha_filter by previous bugfix.