Fixed form bugs.