fixes #6035

Signed-off-by: Mloc <colmohici@gmail.com>