Fix sessions bug