fixed first_open case