Fix ip invalid for admin.