Bugfix for issue #220: exception on Android 4.3
tested on Android 4.3, 4.0.3 and 2.3.3