fix mac swt error