Ensure spec is a list to avoid obscure error