Fix crash when statically showing the API