Fixes wrong API call