Fixed opening bugs