fix back when becomes empty and save when showing the result