Fixed the add button in the pattern editor.
Fixed pattern table editor's add buton.