fix map clear bug