last_open fix