Fixed click event bug