fixed struct bug