Fix bug for params[:completed] filter.