Fix error on timeout