Partially fix https://github.com/osxc/xc-custom/issues/3