Corrected variable name from name to id.