Fixed minor bug with toExplicit method.