Fixes #7934 - Set correct order of require_dependency