fixed adding bug