Fix compatibility (from 7 till 19 API)