fix folder redirect loop