Fixed bugs and added open on join