Error message showed up twice