         |> json ResponseBodyFormatter.error_body(:not_found, "ProductDeployment")
       product ->
         if params["page"] == nil do 
-         page_number = 0
+          page_number = 1
         else
           page_number = Integer.parse(params["page"])
         end

      deployment.completed == true -> resp(conn, :conflict, "Workflow has already completed")
      deployment.output != "[]" -> resp(conn, :conflict, "Workflow has already been started")
      true ->
        payload = deployment
                
        request = %OrchestratorRequest{}
        request = %{request | deployment: deployment}
        request = %{request | completed: nil}

    end
  end

  def execute(conn, %{"product_name" => product_name, "id" => id} = _params) do
    deployment = get_product_deployment(product_name, id)

    cond do
