fixed bug when adding propertymetadata to the stack