Fixed Error message problem