fixed a bug with the scaling of components in the json