fix a crash on 2.3 devices