fixes #6299

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