Fixed adding bug