Fixed potential bug that causes copy functions dropped