Fixed call to LogicException