Fix bug with copy option