fix form bugs.