Fixed bugs in roar API helpers