Fixed a timing bug with runtime.json