Bugfix - Invalid ptr usage on android version