solved the issue where dynamic fields defaults to string