Fix bug on server down