fix crash on 2.3 SDK