fixed adding records