fix re-declare bug