fixes an issue with the wrong state value being set when retrieving configured resources