Throw error when using the selector failed