fix bug while redirect to edited page