fixed bugs on clearing error messages and new collection field.