fixed bug when admin doesn't has edit route.