fix navigation when deleting project

@umop 

fix for #3440 
Indentation -2