Fixing weird copy mode behaviour