Fix intermittently failing spec