Fixed hilarious issue with segv (thx michalrus).

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>