Fix 'dir' in 'fields' option