Fix get build

Fix return type for get build so the reflection to encode/decode works.