Fix for #4289

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