Fixes #3777

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