Fixed adding entry if it's empty