Fixed name bug in API