fix string version cast