Fixes contacts export function