Hopefuly fixing segfault on GNU/Linux and Windoze