fix issue with directly restart and redirecting to self