Fixed slice when using inheritance causing fields to be excluded (#437)