recognize current as ruby string, fix #2665