fixed useless copy