Fixed bug in apiUrl