fixed issue with error colour staying active after error