fix bug master redirect