Fixed addLiteral method.