Fix for issue 22

new return of api was double insted of long