fix LogicException -> LogicError