Does anyone know how to fix this?

The third picture is what the rim should look like.