fixed some bugs of long executed sign-in tasks