fix bug in clickAfter