Fix the use of emptyCopyFlags