fix for compatibility with Api Level 7 (Android 2.1)