Signed-off-by: Rafał Miłecki <rafal@milecki.pl> (cherry picked from commit 081cd769fc3e1de7709d7473b2560aaa549e2b05)