fixing bugs in pull events