Fix incorrect comparison breaking iCloud support