Fix crash on timeout