fix default register on os x