fix open bug