fixed redundant error message.