FIxed a NullReferenceException