fix apple prefix check