Fixed crash in case of server failure.