fixed redirect bug in admin