fix some compatible problems