fixed NPE on Motorola 2.2 devices