Fixes an issue if the type of a property is not defined