Fix check mode issues with copy module

Fixes #8639