fixed crash on click while running