Fix block copy bug