Added local gate for NULL service callback and fixed bug where resource node offset...