Fixed some issues on config form