Fixed a bug that plugin method returns none string.