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