Correction to: Nature https://doi.org/10.1038/s41586-019-1137-z, published online 08 May 2019.

In this Letter, we inadvertently failed to acknowledge that the two silhouettes of Scansoriopterygidae in Fig. 3a were modified from a sketch by Jaime Headden. We apologize for this omission, which has now been included in the Fig. 3 legend and the Acknowledgements section. The original Letter has been corrected online.