fixes #6200

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