Fixes github issue #1856 Signed-off-by: Karl Palsson <karlp@tweak.net.au>
Signed-off-by: Anton Glukhov <anton.a.glukhov@gmail.com>