fix invalid aggregate key