Updated fix for #376

Signed-off-by: ziycon <ziycon.eire@gmail.com>