fix Undefined index: server