Unified patch 3.4.47

Signed-off-by: klozz <xxx.reptar.rawrr.xxx@gmail.com>