Fix bug in save edit page