fix somes redirect bugs