fix bug on convert {} to [{}]