Fixed nullreference on line 257