Fixed logic bug

Apparently, that won't always be a StringLiteral, it might be a
qualified name