fix deprecated warning about redis_port var