Fixes import error when using custom resource access model