fix page redirect