fix a bug that `code({})` should be a string