fixed multiple --hide-extension problem