minor code cleanup
fixed ProviderChecks done before computing size