Fixed wrong api usage
Merge pull request #375 from Nek-/fix/update-bundle

Fixed wrong api usage