Some fixes around `delete-other-frames' and `next-frame'