opening bug fix