Fix bug where certain routes are being overwritten.
Edit action.