fix crash on Eclair and Froyo