fix build and the "missing top span" error