Fixed bugs of activity submission.