fix string type in scope