fixed bug when status reports undefined when server is offline