Fix mistake with variable name in resource_controller.