Fixed some config and meta IO bugs