Fixed custom properties not being cleared clear() method