fix crash when building a construct