Fixed possible crash because of passing struct from stack