Fix the bug of deselecting side effect when submitting multiple side effects.