Fixed a misinterpreted API that now works after testing