Fix the bug of submitting multiple side effects.