throw error when indexing with NA