Fixes wrong API used