#104 Fix error when editing an entry