fixed bug where couldn't add after deleteing.