fix rat issue