Fix missing ']'.
Fix check input.