stopped error messages from being duplicated.