fixed bug when running on froyo