Corrected run-time error due to differing struct sizes