Fixed bug in api config