Fixed bug struct initialization