Fixed a bootstrap bug triggered by json grammar