Fixed bug appearing on android. Thanks to Vibhu Mohindra (vibhu.mohindra@gmail.com)