Fix bug which prevented timeout error message to be displayed