overlay: fix copying  overlay