fixing multi_open bug