Fixed setting struct value in method

struct value as pointer set in method, now 3rd peer causes problems