fix bug string not function