fixed events disappearing problem