fix postinstall issue