Fixes the copy classes template

(cherry picked from commit 7d5bb2017b6f60375473fd0cac3647e163022363)