Messages update and destroy security fix