fix behaviour of build method to return values for all properties