Fix the bug when a datasource or a property is empty.