Fixed variable naming error.
"id" and "requested_id" should have been one and the same variable.