Fixed crasch

Signed-off-by: Markus Tillman <reetopps6@hotmail.com>