Fixes android permission bug