fix bug in segment path for admin