fixed copy switch error