found a bug with redirect