Fix bug in edit

Now it loads initial values properly