fix error resolving multiple times