fixed API data submission