Fix deleteRoute function