Fixed uninitialised value error.