fix bug, display correct data on edit page