Fix for problems in the way that REST instances are configured.