fixed bug for setting empty struct to params