fix crash importing/capturing on 4.0, 4.1, 4.2 and 4.3 devices