Fix for bug #403

Successfully tested with with API level 8 and API level 17.
![API8](https://f.cloud.github.com/assets/452620/426851/d911455a-add4-11e2-9453-5ed00fdbb08c.png)