fixed viewdir quote problem