renamed variable
Fixed android compatibility