Small fix to filter inputs