fix gaia event bug and improve the event and lock