Fix a problem of 'z' option and shared string