I found the problem. there was 2 structs with different fields and same name