Fix error

Valgrind was throwing out this error:

"Uninitialised value was created by a stack allocation"