Added error for bad filter specs