fix redirect error on centos tests