Bugfixes for android below 3.0 version