Fixed syntax error.
Fixed submission bug and modal bug.