1. Fixed various issues when building the dynamic object