Fixed opening bug