Fixed brackets bug on API.